package cn.ibdsr.human.service;

import cn.ibdsr.human.transfer.company.CompanyListDTO;
import cn.ibdsr.human.transfer.companyrecommend.CompanyRecommendDTO;
import cn.ibdsr.human.transfer.companyrecommend.CompanyRecommendListDTO;
import cn.ibdsr.human.transfer.companyrecommend.CompanyRecommendQueryDTO;
import cn.ibdsr.human.transfer.job.JobOperatorDTO;

import java.util.List;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/8/12 10:51
 */
public interface CompanyRecommendService {
    CompanyRecommendDTO getCompanyInformation(Long id);

    Long save(Long userId, CompanyRecommendDTO companyRecommendDTO);

    CompanyRecommendListDTO getCompanies(CompanyRecommendQueryDTO companyRecommendQueryDTO);

    /**
     * 发布取消发布企业
     * @param userId
     * @param jobSaveDTO
     * @return
     */
    Long publishOrNot(Long userId, JobOperatorDTO jobSaveDTO);

    /**
     * 删除企业
     * @param userId
     * @param id
     * @return
     */
    Long delete(Long userId, Long id);

    /**
     * 获取所有推荐企业
     * @return
     */
    List<CompanyRecommendDTO> getLatestCompanies();
}
